{% extends 'base.html' %}

{% block title %}删除文章 - 个人博客{% endblock %}

{% block content %}
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card shadow-sm">
                <div class="card-header bg-danger text-white">
                    <h2 class="mb-0">删除文章</h2>
                </div>
                <div class="card-body">
                    <p class="lead">你确定要删除文章 "{{ post.title }}" 吗？</p>
                    <p class="text-danger">此操作不可逆，删除后将无法恢复！</p>
                    
                    <form method="post">
                        {% csrf_token %}
                        <div class="d-flex justify-content-between mt-4">
                            <a href="{{ post.get_absolute_url }}" class="btn btn-secondary">取消</a>
                            <button type="submit" class="btn btn-danger">确认删除</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}

